<html>
	 <head >
		 <meta charset="utf-8"/>
		 <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimum-scale=1.0"/> 
		 <script src="../static/js/jquery-1.11.3.js"></script> 
		 <script src="../static/js/bootstrap.js"></script>
		  <script src="../static/js/bootstrap.min.js"></script>
		 <link rel="stylesheet" href="../static/css/bootstrap.css"/> 
		 <script src="../static/js/fileinput.js"></script>
		 <link  rel="stylesheet" href="../static/css/fileinput.css"/>
		 
	 </head> 
	  <body>
        <div class="container kv-main">
            <div class="page-header">
            </div>
            <form enctype="multipart/form-data">
                <input id="file-0" type="file"  multiple class="file-loading">
                <br>
            
            </form>   
        </div>
        
    </body>
	<script>
    $("#file-0").fileinput({ 
    uploadUrl:  '{{MURL}}', // server upload action
    uploadAsync: false,
    showPreview: false,
    allowedFileExtensions: ['ipa'],
    }).on('filebatchuploadsuccess',function(event,data,preinde,cinde){
	     window.location.replace(data.response.url);
	 
	    
    })
    ; 
    function upload(){
	    $("#file-0").fileinput('upload');
    };
    $('#file-0').on('filebatchuploadcomplete', function(event, files, extra) {
//     window.location.replace(this.responseURL);
}); 
 	</script> 
</html>